package com.sacc.controller;


import com.power.common.model.CommonResult;
import com.sacc.service.ProductBoxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 滚~韬
 * @date 2022/4/18 18:07
 */
@RestController
@RequestMapping("/product/box")
public class ProductBoxController {
    @Autowired
    private ProductBoxService productBoxService;
    //添加对应产品的蜂箱id
    @PostMapping("/add")
    private CommonResult AddId(Integer productId,Integer boxId){
        return productBoxService.Add(productId,boxId);
    }
    //获取对应产品的蜂箱id
    @GetMapping("/get")
    private CommonResult GetId(Integer productId){
        return productBoxService.Get(productId);
    }

}
